package com.cq.hd.order.api.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

import java.io.Serializable;
import java.math.BigDecimal;

public class TotalPointsOrderSheet implements Serializable {

    @ExcelProperty(value = "总订单数", index = 0)
    @ColumnWidth(20)
    private Integer orderNum;

    @ExcelProperty(value = "核销订单数", index = 1)
    @ColumnWidth(20)
    private Integer verifyOrderNum;

    @ExcelProperty(value = "核销金额总计", index = 2)
    @ColumnWidth(20)
    private String verifyOrderAmt;

    @ExcelProperty(value = "订单总金额", index = 3)
    @ColumnWidth(20)
    private String totalOrderPrice;

    @ExcelProperty(value = "下单人数", index = 4)
    @ColumnWidth(20)
    private Integer orderUserNum;

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getVerifyOrderNum() {
        return verifyOrderNum;
    }

    public void setVerifyOrderNum(Integer verifyOrderNum) {
        this.verifyOrderNum = verifyOrderNum;
    }

    public String getVerifyOrderAmt() {
        return verifyOrderAmt;
    }

    public void setVerifyOrderAmt(BigDecimal getVerifyOrderAmt) {
        if (getVerifyOrderAmt != null) {
            this.verifyOrderAmt = getVerifyOrderAmt.setScale(2, BigDecimal.ROUND_HALF_UP).toString();
        }
    }

    public String getTotalOrderPrice() {
        return totalOrderPrice;
    }

    public void setTotalOrderPrice(BigDecimal getTotalOrderPrice) {
        if (getTotalOrderPrice != null) {
            this.totalOrderPrice = getTotalOrderPrice.setScale(2, BigDecimal.ROUND_HALF_UP).toString();
        }
    }

    public Integer getOrderUserNum() {
        return orderUserNum;
    }

    public void setOrderUserNum(Integer orderUserNum) {
        this.orderUserNum = orderUserNum;
    }
}
